package com.huawei.lynnbit.tool.cocos.config.game;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;

@Data
@Slf4j
public class AppConfig {
    private String appId;
    private String clientId;
    private String appName;
    private String packageName;
    private String version;
    private String iconPath;
    private String rewardAdId;
    private String interstitialAdId;
    private String splashAdId;
    private String bannerAdId;
    private String userAgreementUrl;
    private String privacyUrl;
    private String copyrightOwner;
    private String softCopyrightRegistrationNumber;
    private String loadingBg;
    private String loadingLogo;
    private String ageRateBg;
    private String ageRateText;
    private String loadingFontColor;
    private String privacyCompany;
    private String privacyEmail;

    public boolean isValid() {
        if (StringUtils.isBlank(appId)) {
            log.error("appId cannot be blank");
            return false;
        }

        if (StringUtils.isBlank(clientId)) {
            log.error("clientId cannot be blank");
            return false;
        }

        return true;
    }
}
